package com.ssyt.store.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.store.common.PageModel;
import com.ssyt.store.sys.dao.StoreProductsDao;
import com.ssyt.store.sys.entity.StoreProduct;
import com.ssyt.store.sys.service.ProductService;
@Service
public class ProductServiceImpl implements ProductService{
	
	@Autowired
	private StoreProductsDao productDao;
	
	
	@Override
	public PageModel<StoreProduct> showAllProducts(int pageNo, int pageSize) {
		return productDao.showAllProducts(pageNo, pageSize) ;
	}
	@Override
	public StoreProduct productInfo(String productId) {
		return productDao.productInfo(productId);
	}
	@Override
	public PageModel<StoreProduct> ListAllProducts(int pageNo, int pageSize, String name, Integer flag, Integer price) {
		return productDao.ListAllProducts(pageNo, pageSize, name, flag, price);
	}

}
